﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using SqlSugar;

namespace Net.Model.Entities.Enterprises
{
    [SugarTable("AppProductLine", TableDescription = "产线表")]
    public partial class AppProductLine:BasicModel
    {
        public AppProductLine() { }

        [Display(Name = "产线Id")]
        [SugarColumn(ColumnDescription = "产线Id", IsPrimaryKey = true, IsIdentity = true)]
        [Required(ErrorMessage = "请输入{0}")]
        public long Id { get; set; }

        [Display(Name = "产线名称")]
        [SugarColumn(ColumnDescription = "产线名称", IsNullable = true)]
        [Required(ErrorMessage = "请输入{0}")]
        public String? ProductLineName { get; set; }

        [Display(Name = "企业Id")]
        [SugarColumn(ColumnDescription = "企业Id", IsNullable = false)]
        [Required(ErrorMessage = "请输入{0}")]
        public long EnterpriseId { get; set; }


        [Display(Name = "产线唯一标识")]
        [SugarColumn(ColumnDescription = "产线唯一标识", IsNullable = true)]
        public String? PLMark { get; set; }

        [Display(Name = "产线产量")]
        [SugarColumn(ColumnDescription = "产线产量", IsNullable = true)]
        public int Yields { get; set; }

        [Display(Name = "产线产量")]
        [SugarColumn(ColumnDescription = "产线产量", IsNullable = false)]
        public long LicenseId { get; set; }


        [Display(Name = "授权码")]
        [SugarColumn(ColumnDescription = "授权码", IsNullable = true)]
        public String? LicenseCode { get; set; }

        [Display(Name = "是否激活")]
        [SugarColumn(ColumnDescription = "是否激活",IsNullable = false)]
        [Required(ErrorMessage = "请输入{0}")]
        public Boolean IsActive { get; set; }



    }
}
